'use strict';

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

/* eslint-disable no-console */

var chalk = require('chalk');
var figures = require('figures');

exports.log = console.log.bind(console);

exports.error = function (messages) {
  return console.error(chalk.red.apply(chalk, _toConsumableArray([figures.cross].concat(messages))));
};

exports.info = function (messages) {
  return console.info(chalk.cyan.apply(chalk, _toConsumableArray([figures.info].concat(messages))));
};

exports.success = function (messages) {
  return console.log(chalk.green.apply(chalk, _toConsumableArray([figures.tick].concat(messages))));
};

exports.warn = function (messages) {
  return console.warn(chalk.yellow.apply(chalk, _toConsumableArray([figures.warning].concat(messages))));
};